name: Первая сборка GitVerse CI/CD
on:
  push:
env:
  WORKSPACE_DIR: /workspace/drno-reg/ring-the-alarm-backend
jobs:
  build-test:
    name: Test buid
#    runs-on: ubuntu-latest
    container:
      image: docker:27.0.3-dind-alpine3.20
    steps:
      - name: проверка ${{ WORKSPACE_DIR }}
        run: ls -las $WORKSPACE_DIR
      - name: проверка image
        run: docker -v
      - name: Собираем артефакт
        run: docker build -t drnoreg/ring-the-alarm-pg:0.0.1 -f $WORKSPACE_DIR/docker/postgresql/Dockerfile ./